﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;

namespace VersionComparer
{
    internal static class NativeMethods
    {
        #region dllimports
        [DllImport("kernel32", SetLastError = true)]
        internal static extern bool FreeConsole();
        [DllImport("kernel32.dll")]
        internal static extern bool AttachConsole(int dwProcessId);
        [DllImport("user32.dll", CharSet = CharSet.Auto)]
        internal static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, IntPtr wParam, IntPtr lParam);
        [DllImport("user32.dll", CharSet = CharSet.Auto)]
        internal static extern int GetScrollPos(IntPtr hWnd, System.Windows.Forms.Orientation nBar);
        [DllImport("user32.dll")]
        internal static extern int SetScrollPos(IntPtr hWnd, System.Windows.Forms.Orientation nBar, int nPos, bool bRedraw);
        #endregion dllimports

        #region consts
        internal const int WM_SETREDRAW = 0x0b;
        internal const int SB_THUMBPOSITION = 4;
        internal const int WM_HSCROLL = 0X114;
        internal const int WM_VSCROLL = 277;
        internal const int WM_MOUSEWHEEL = 0x020A;
        internal const int SB_THUMBTRACK = 5;
        #endregion consts

    }
}
